package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.ChannelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ChannelMapper extends MyMapper<ChannelEntity> {

    ChannelEntity selectDefault(@Param("shopId") Integer shopId);

    List<ChannelEntity> selectList(@Param("shopId") Integer shopId, @Param("name") String name);

    List<ChannelEntity> selectByType(@Param("shopId")Integer shopId, @Param("type") int type);

    List<ChannelEntity> selectByName(@Param("shopId")Integer shopId, @Param("name") String name);
}
